import { MaterialItemCellRenderer } from "../../equipment/MaterialItemCellRenderer";
import { ResouceConst } from "../../../../component/gconst/ResouceConst";
import { ImagesConst } from "../../../resource/ImagesConst";
import { FilterConst } from "../../../../component/gconst/FilterConst";
//class MountWashMaterialCellRenderer
    
    export  class MountWashMaterialCellRenderer extends MaterialItemCellRenderer
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ initStyle(): void
        {
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            if (cellBg && cellBg.parent) 
            {
                cellBg.parent.removeChild(cellBg);
                cellBg = null;
            }
            cellBg = ResouceConst.getScaleBitmap(ImagesConst.titleSelectedBg) as Object /* flash.display.Bitmap */;
            cellBg.width = 156;
            cellBg.height = 64;
            cellBg.x = 1;
            cellBg.y = 1;
            this.addChildAt(cellBg, 0);
            picBg.x = picBg.x + 7;
            picBg.y = picBg.y + 2;
            pic.x = pic.x + 7;
            pic.y = pic.y + 2;
            itemNameLabel.x = itemNameLabel.x + 7;
            itemNameLabel.width = 140;
            itemNameLabel.textField.filters = [FilterConst.glowFilter];
            itemNameLabel.drawNow();
            pricetext.x = pricetext.x + 10;
            pricetext.textField.filters = [FilterConst.glowFilter];
            pricetext.drawNow();
            priceLabel.x = priceLabel.x + 10;
            priceLabel.textField.filters = [FilterConst.glowFilter];
            priceLabel.drawNow();
            buyButton.x = buyButton.x + 17;
            buyButton.y = buyButton.y + 2;
            numStepper.width = 52;
            numStepper.x = numStepper.x + 9;
            numStepper.y = numStepper.y + 2;
            numStepper.drawNow();
            yb.x = yb.x + 3;
            return;
        }
    }
